package com.breakfast.fun.ui.user.feedback;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.user.feedback.Feed;
import com.breakfast.fun.data.entity.user.feedback.FeedData;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/9/9.
 */
public interface FeedBackContract {
    interface Model extends BaseModel {
        Observable<Feed> getFeedModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void feedSuccess();
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void submitFeed(FeedData feedData);
    }
}
